<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!-- <%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>-->
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="<%=request.getContextPath() %>/js/ajax-1.0.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jQuery/jquery_last.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jQuery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jQuery/jquery-impromptu.2.7.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jQuery/jquery-selected.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jQuery/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jQuery/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jQuery/jquery.form.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jQuery/jquery.form.wizard.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jQuery/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jQuery/jquery.lazyload.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jQuery/jquery.treeview.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jQuery/jquery.validate.js"></script>
<title>Login Form</title>
</head>
<script type="text/javascript">
	$(document).ready(function() {
		$("#b01").click(function() {
		
		htmlobj=$.ajax({url:"<%=request.getContextPath() %>/student.do?method=test&user="+user+"&psw="+psw,async:false});
      // $("#myDiv").html(htmlobj.responseText);
			alert(htmlobj.responseText);
		});
	});
</script>
<body>
	<div id="myDiv">
		<h2>Let AJAX change this text</h2>
	</div>
	<form id="saveAction" method="post" action="">
		<div>
			<c:out value="${addstate}"></c:out>
		</div>
		<table>
			<tr>
				<td>姓名</td>
				<td><input id="user" name="user" type="text" />
				</td>
			</tr>
			<tr>
				<td>密码</td>
				<td><input id="psw" name="psw" type="text" />
				</td>
			</tr>
			<tr>
				<td colSpan="2" align="center">
				<input id="b01" type="button" value="提交" /> 
				<input type="button" onclick="turnback()" value="返回" />
				</td>
			</tr>
		</table>
	</form>
</body>
</html>
